import { defineStore } from "pinia";

interface TripartiteStoreState {
  type: number;
  idToken: string;
  openID: string;
  email: string; // 邮箱
  isUnregistered: boolean; // 是否注册过
}

// 三方登录信息
export const useTripartiteStore = defineStore("tripartite/state", {
  // 其他配置...
  state: (): TripartiteStoreState => {
    return {
      type: 3, // 3 谷歌 4 facebook
      idToken: "",
      openID: "",
      isUnregistered: false,
      email: "",
    };
  },
});
